var Radio = require('./radio');

var inforObj = {
    "name": "music radio",
    "frequency": "FM 106.7"
}
var radio = new Radio(inforObj);

radio.on("start", function(){
    radio.start();
})
radio.on("end", function(){
    radio.stop();
})
radio.emit("start");
setTimeout(function(){
    radio.emit('end');
}, 2000)